package de.au.fi.calc.criteria.complex;

import de.au.fi.calc.criteria.Criteria;

public class CriteriaGewinnwachstum extends Criteria {
	
	Double epsAj;
	Double epsNj;

	public CriteriaGewinnwachstum(Double epsAj, Double epsNj) {
		super("Gew.wachstum");
		this.epsAj = epsAj;
		this.epsNj = epsNj;
		this.positiveLimit = 5.0;
		this.negativLimit = -5.0;
	}
	
	@Override
	public int calculate() 
	{
		if(epsAj == null || epsNj == null)return 0;
		this.value = epsNj - epsAj;
		return super.calculate();
	}

}
